﻿using System;
using Jxym.DBUtility;
using Jxym.wlkc2011.Module.Default.model;
using Newtonsoft.Json;

namespace Jxym.wlkc2011.Module.Default.server.Files
{
    public partial class FoldersGetModel : System.Web.UI.Page
    {
        string str = "{}";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Request.Params["depmetId"] != null)
                {
                    int parentId = Convert.ToInt32(Request.Params["depmetId"]);
                    MsSqlDal<model.Folders> iD = new MsSqlDal<Folders>();
                    Folders dInfo = iD.GetModel("ID=" + parentId, null);
                    if (dInfo != null)
                    {
                        str = JsonConvert.SerializeObject(dInfo);
                    }
                }
                Response.Write(str);
            }
        }
    }
}